package la.bbs558.strategy.send;

import la.bbs558.entity.enums.CaptchaTypeEnum;
import la.bbs558.entity.enums.ServerTypeEnum;
import la.bbs558.strategy.base.StrategyContext;
import la.bbs558.strategy.base.StrategyEnum;
import lombok.Data;

import java.util.Optional;
import java.util.concurrent.TimeUnit;

/**
 * @author: Shanks
 * @date: 2024/1/25 14:20
 * @desc:
 */
@Data
public class SendContext implements StrategyContext {
    private String to;
    private long time;
    private String code;
    private TimeUnit timeUnit;
    private ServerTypeEnum serverTypeEnum;
    private CaptchaTypeEnum captchaTypeEnum;
    private Object result;

    @Override
    public Optional<StrategyEnum> getStrategyEnum() {
        return Optional.ofNullable(captchaTypeEnum);
    }
}
